#include "StdAfx.h"
#include "Camera.h"

CCamera::CCamera(void)
{
	m_Eye = CVec(1, 0, 0);
	m_Target = CVec(0, 0, 0);
	m_UpDir = CVec(0, 0, 1);
}

CCamera::~CCamera(void)
{
}

double CCamera::operator[](int i)
{
	int j = i / 3;
	int k = i % 3;
	switch(j)
	{
	case 0:
		return m_Eye[k];

	case 1:
		return m_Target[k];

	case 2:
		return m_UpDir[k];
	}

	return 0;
}

bool CCamera::Reset()
{
	m_Eye = CVec(1, 0, 0);
	m_Target = CVec(0, 0, 0);
	m_UpDir = CVec(0, 0, 1);

	return true;
}